//
//  AppDelegate+YGRootView.m
//  yuanshangyiliao
//
//  Created by icholab on 2021/3/14.
//

#import "SceneDelegate+YGRootView.h"
#import "XCMediator+YGLoginModule.h"
#import "YGTabBarViewController.h"
//#import "YGPatientLoginViewController.h"
@implementation SceneDelegate (YGRootView)

- (UIViewController *)getRootViewControoler{
    BOOL isLogin = NO;
    if (isLogin) {
        //登录成功
        YGTabBarViewController *mainTabBar = [[YGTabBarViewController alloc] init];
        return mainTabBar;
    }else{
        UIViewController *vc = [[XCMediator sharedInstance] getLoginMudule_loginViewController];
        UINavigationController *navi = [[UINavigationController alloc] initWithRootViewController:vc];
        
        return navi;
//        YGPatientLoginViewController *
    }
}

- (void)resetRootViewController{
   
}
@end
